

package com.yz.service.impl;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.yz.common.entity.CheckEntity;
import com.yz.common.entity.RuinEntity;
import com.yz.dao.CheckDao;
import com.yz.dao.RuinDao;
import com.yz.service.CheckService;
import com.yz.service.RuinService;
import org.springframework.stereotype.Service;

@Service("checkService")
public class CheckServiceImpl extends ServiceImpl<CheckDao,CheckEntity> implements CheckService {
    @Override
    public void deleteMe(int type,int type_form,long data_id) {
        this.baseMapper.delete(new EntityWrapper<CheckEntity>().eq("data_id",data_id).eq("type_form",type_form).eq("type",type));
    }
    @Override
    public void deleteMe(int type,long data_id) {
        this.baseMapper.delete(new EntityWrapper<CheckEntity>().eq("data_id",data_id).eq("type",type));
    }
}
